module Concerns
  module SEO
    extend ActiveSupport::Concern

    def drop_meta(options = {})
      options[:meta] ||= {}
      options[:meta][:author] ||=  AppSettings.seo.author
      options[:meta][:description] ||= AppSettings.seo.description
      options[:title] = "#{options[:title]} | Catlog"
      (@meta_data ||= {}).merge! options
    end

    def drop_title(title)
      drop_meta title: title
    end
  end
end